package com.xuecheng.order.service;

import com.xuecheng.commons.model.vo.OrdersVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.order.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-12-13
 */
public interface OrdersService extends IService<Orders> {

    // 用户下单
    ResponseResult<String> createOrder(Long coursePubId);

    // 查询支付结果
    ResponseResult<OrdersVo> isPay(String orderNo);

    // 查询未支付订单，清理
    void clearOrder();
}
